package com.ctl.function;

import java.util.Random;
import java.util.function.Predicate;

public class PredicateTest {

    public static void main(String[] args) {
        Predicate predicate =obj->obj==null?true:false;
        System.out.println(predicate.test(1));
        System.out.println(predicate.test(null));
    }
}
